Lens Controller
|
The GeT Cameras Lens Controller is a device developed by VRW Technology. The lens controller has support for multiple types of lenses and can controll the zoom, focus and iris functions of a camera lens through commands over a serial connection. It has the following connections:
This module provides the api.LensControllerAPI, a class for interfacing with the GeT Cameras lens controller hardware over a serial connection.
The lens controller can control the focus, zoom and iris of a stepper motor lens.
The lens controller has an internal positioning system. By calibrating the lens controller, the positioning system is calibrated and the system will know the position of each motor at all times. The positionint system is used for setting and calling presets and for moving to a specific position. The lens controller supports the Pelco D protocol with the following commands:
In addition, the following custom commands are supported:
Select the type of lens connected to the lens controller (custom_select_lens_default_afz, custom_select_lens_S1MZ1040_D_P_M_IR_12M)
Get the type of lens the controller is configured for
Calibrate all connected motors. During calibration the maximum and minimum position of the lens is Determined. The resolution of the controller is very high, small deviation around 1% are allowed and are not visually noticable. To get the maximum position determined during calibration: Use Pelco D command to move the motor to the maximum position and call the get-position-command. The minimum position is always 0.
Get the current position of the zoom motor. The returned value is a value between max and min determined during calibration.
Set the absolute position of the zoom motor. The value should between 0 and the maximum position determined during calibration. Values larger than maximum are automatically set to maximum.
Get the current position of the zoom motor. The returned value is a value between max and min determined during calibration.
Set the absolute position of the focus motor. The value should between 0 and the maximum position determined during calibration. Values larger than maximum are automatically set to maximum.
Get the current position of the zoom motor. The returned value is a value between max and min determined during calibration.
Set the absolute position of the iris motor. The value should between 0 and the maximum position determined during calibration. Values larger than maximum are automatically set to maximum.
Set the sensitivity mode of the motors. The default is 0; 1 makes the calibration less sensitive and is used for longer cables.
Get the current sensitivity mode of the controller. 0 for default; 1 for less sensitive (used for longer cables).
When power is removed, the lens controller will be restored to its factory defaults. The store current settings command will store speed, lens type, presets, calibration values and current positions in the permanent memory of the lens controller. These values will be restored after a power cycle.